<template>
  <div class="my">



<!-- 用户信息 -->
    <view class="user-info">
			<image class="u-img" @click="prlimg"  src="/static/logo.png"></image>
			<view class="u-text">
				<view class="username">{{userName}}</view>
				<view class="small-text">
					欢迎使用,{{userName}}
				</view>
			</view>
			<view class="u-icon-setting" @click="toUserInfo">
				<u-icon name="arrow-right" color="rgb(227 227 227)" size="18"></u-icon>
			</view>
		</view>

  
  </div>
  <!-- 功能表单 -->
  <view>
  <view class="u-menu-list">
			<view class="u-menu-item" @click="itemClick(item)" v-for="(item,index) in menu" :key="index">
				<view class="u-menu-icon">
					<image style="width:36rpx;height: 36rpx;" :src="item.icon"></image>
					<!-- 	<u-icon :name="item.icon" color="#303133" size="15"></u-icon> -->
				</view>
				<view class="u-menu-text">{{item.name}}</view>
				<view class="u-menu-icon-rigth">
					<u-icon name="arrow-right" color="rgb(231 231 231)" size="15"></u-icon>
				</view>
			</view>
		</view>
  </view>
  
  <view>
	关于我们
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
const userName=ref('鹿苏')
const menu=ref([{
						name: "关于vol",
						path: '/pages/user/about/about',
						icon: '/static/user.png',
						color: ''
					},

					{
						name: "修改密码",
						path: '',
						icon: '/static/pwd.png',
						color: '',
						// path: "/pages/user/modifyPwd/modifyPwd"
					},
					{
						name: "系统设置",
						path: '',
						icon: 'setting',
						color: ''
					},
					{
						name: "退出登陆",
						path: '/pages/login/login',
						icon: '/static/logout.png',
						color: ''
					},
				])
const prlimg=()=>{
	
}
</script>
<style lang="scss">

.user-info {
		// height: 220rpx;
		display: flex;
		align-items: center;
		padding: 150rpx 40rpx 60rpx 60rpx;
		background-image: linear-gradient(135deg, #26bcff 10%, #078ef9);
		position: relative;

		.u-img {
			width: 150rpx;
			height: 150rpx;
			border-radius: 50%;
			border: 2rpx solid #FFFFFF;
		}

		.u-text {
			flex: 1;
			color: #FFFFFF;
			padding: 26rpx 30rpx;
		}

		.username {
			font-weight: bolder;
			font-family: 黑体;
		}

		.small-text {
			font-size: 24rpx;
			padding-top: 10rpx;
		}

		.u-icon-setting {
			width: 30rpx;
			color: #FFFFFF;
		}
	}

  .u-menu-list {
		background: #FFFFFF;
		margin: 0rpx;
		border-radius: 5rpx;
		border: 1px solid #f7f7f7;

		.u-menu-item {
			display: flex;
			padding: 30rpx 20rpx;
			border-bottom: 1px solid #f7f7f7;
			align-items: center;

			.u-menu-icon {
				padding-top: 8rpx;
				padding-right: 20rpx;
			}

			.u-menu-text {
				flex: 1;
				color: #5e5e5e;
			}

			.u-menu-icon-rigth {
				width: 30rpx;
			}
		}
	}

</style>
